<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <table>
        <tr>
            <th>Id</th>
            <th>角色名称</th>
            <th>头像</th>
            <th>操作</th>
        </tr>
        {% for item in data%}
        <tr id="{{item.id}}">
            <td>{{item.id}}</td>
            <td>{{item.rolename}}</td>
            <td>{{item.avatar}}</td>
            <td>
                <input type="button" value="保存" onclick="editClick()">
                <input type="button" value="删除" onclick="del('{{item.id}}')">
            </td>
        </tr>
        {% endfor %}
    </table>

    <script src="../statics/js/jquery-3.6.4.min.js"></script>
    <script src="../statics/js/axios.min.js"></script>
    <script src="../statics/js/roles.js"></script>
</body>

</html>